home *** CD-ROM | disk | FTP | other *** search
/ Languguage OS 2 / Languguage OS II Version 10-94 (Knowledge Media)(1994).ISO / gnu / ae.lha / ae / AEC / Makefile < prev    next >
Makefile  |  1990-02-28  |  2KB  |  86 lines

  1. #
  2. # Makefile for AEC.
  3. # Copyright (C) 1990, James R. Larus (larus@cs.wisc.edu)
  4. #
  5. #
  6. # AE and AEC are free software; you can redistribute it and/or modify it
  7. # under the terms of the GNU General Public License as published by the
  8. # Free Software Foundation; either version 1, or (at your option) any
  9. # later version.
  10. #
  11. # AE and AEC are distributed in the hope that it will be useful, but
  12. # WITHOUT ANY WARRANTY; without even the implied warranty of
  13. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
  14. # General Public License for more details.
  15. #
  16. # You should have received a copy of the GNU General Public License
  17. # along with GNU CC; see the file COPYING.  If not, write to James R.
  18. # Larus, Computer Sciences Department, University of Wisconsin--Madison,
  19. # 1210 West Dayton Street, Madison, WI 53706, USA or to the Free
  20. # Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.
  21. #
  22.  
  23. # Set this variable to the path to aec-file-{prologue,epilogue}:
  24.  
  25. LIB_PATH = \"`pwd`/\"
  26. #LIB_PATH = \"/var/scratch/AE/lib.MIPS/\"
  27.  
  28.  
  29. # The directories search for include files must include: the current
  30. # directory, the directory containing gcc, and gcc's config
  31. # subdirectory.
  32.  
  33. IFLAGS = -I. -I../gcc -I../gcc/config
  34. CFLAGS = -g $(IFLAGS)
  35. YFLAGS = -d
  36.  
  37. # If you have flex, use it instead of lex.  If you use flex, define this
  38. # variable and set LEXFLAGS.
  39.  
  40. MYLEX = flex
  41. LEXFLAGS = -DFLEX_SCANNER    # if using flex (not lex)
  42.  
  43. # If you use lex, set the variables this way:
  44.  
  45. #MYLEX = lex
  46. #LEXFLAGS =
  47.  
  48. LDFLAGS =
  49.  
  50.  
  51. aec:    y.tab.o lex.yy.o aec.o
  52.     $(CC) $(CFLAGS) aec.o y.tab.o lex.yy.o -o aec $(LDFLAGS)
  53.  
  54.  
  55. aec.o:    aec.c
  56.     $(CC) $(CFLAGS) -DLIBRARY_PATH=$(LIB_PATH) -c aec.c
  57.  
  58.  
  59. aec.c:    aec.h
  60.  
  61.  
  62. y.tab.h: parser.y
  63.     yacc $(YFLAGS) parser.y
  64.  
  65.  
  66. y.tab.c: parser.y
  67.     yacc $(YFLAGS) parser.y
  68.  
  69.  
  70. lex.yy.c: scanner.l y.tab.h schema.h
  71.     /lib/cpp -P $(LEXFLAGS) scanner.l | $(MYLEX) $(LFLAGS)
  72.  
  73.  
  74. # Optimization speeds up the scanner, so use the -O flag.
  75.  
  76. lex.yy.o: lex.yy.c
  77.     $(CC) $(IFLAGS) -O -c lex.yy.c
  78.  
  79.  
  80. TAGS:
  81.     etags *.c *.h *.l *.y
  82.  
  83.  
  84. clean:
  85.     rm -f aec *.o y.tab.h y.tab.c lex.yy.c core a.out ae.out
  86.